<div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
        <div class="heading"><?php echo $heading_title; ?></div>
    </div>
</div>

<div class="middle">
    <table class="list">
        <tbody>
        <?php foreach ($products as $key=>$product) {
        if($key==0||$key%4==0){
        ?>
        <tr>
            <?php } ?>
          <td style="width: 25%;">
              <?php if ($product['thumb']) { ?>
              <a href="<?php echo $product['href']; ?>"><img alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" src="<?php echo $product['thumb']; ?>"></a>
              <?php } ?>
              <br>
                <a href="<?php echo $product['href']; ?>""><?php echo $product['name']; ?></a><br>
                <span style="color: #999; font-size: 11px;"><?php echo $product['model']; ?></span><br>
                <span style="color: #900; font-weight: bold;"><?php if ($product['price']) { ?>

                        <?php if (!$product['special']) { ?>
                        <?php echo $product['price']; ?>
                        <?php } else { ?>
                        <span class="price-old"><?php echo $product['price']; ?></span> <?php echo $product['special']; ?>
                        <?php } ?>
                    </div>
                    <?php } ?>
                </span>
              <a title="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>')" class="button_add_small">&nbsp;</a>
                <br>
              <?php if ($product['rating']) { ?>
              <img src="catalog/view/theme/wenlong/image/stars_<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" />
              <?php } ?>
            </td>
           <?php if(($key+1)%4==0){
            ?>
        </tr>
            <?php } ?>
        <?php } ?>
        </tbody></table>
</div>

<div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
</div>